﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Default2 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void ListView1_ItemInserting(object sender, ListViewInsertEventArgs e)
    {
        DropDownList ddl1 = (DropDownList)ListView1.InsertItem.FindControl("DropDownList1");
        if (ddl1 != null)
            e.Values["id"] = ddl1.SelectedValue;
        DropDownList ddl2 = (DropDownList)ListView1.InsertItem.FindControl("DropDownList2");
        if (ddl2 != null)
            e.Values["lang"] = ddl2.SelectedValue;

        //FredCK.FCKeditorV2.FCKeditor fckCpontent = (FredCK.FCKeditorV2.FCKeditor)ListView1.InsertItem.FindControl("DropDownList2");
        //if (fckCpontent != null)
        //    e.Values["content"] = fckCpontent.Value;

    }
}
